{if $pagebar}
<div class="d-flex justify-content-center">
  <ul class="pagination">
    {foreach $pagebar.buttons as $k=>$v}
      {if $pagebar.PageNow==$k}
      <li class="page-item active"><a href="{$v}" class="page-link">{$k}</a></li>
      {else}
      <li class="page-item"><a href="{$v}" class="page-link">{$k}</a></li>
      {/if}
    {/foreach}
  </ul>
</div>
{/if}